var PASSWORD_SERVICE_NAME = 'gdm-password';
var FINGERPRINT_SERVICE_NAME = 'gdm-fingerprint';
var SMARTCARD_SERVICE_NAME = 'gdm-smartcard';
-var FADE_ANIMATION_TIME = 160;
var CLONE_FADE_ANIMATION_TIME = 250;
var LOGIN_SCREEN_SCHEMA = 'org.gnome.login-screen';
SWIPE: 2,
};
-function fadeInActor(actor) {
- if (actor.opacity == 255 && actor.visible)
- return null;
-
- let hold = new Batch.Hold();
- actor.show();
- let [, naturalHeight] = actor.get_preferred_height(-1);
-
- actor.opacity = 0;
- actor.set_height(0);
- actor.ease({
- opacity: 255,
- height: naturalHeight,
- duration: FADE_ANIMATION_TIME,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD,
- onComplete: () => {
- this.set_height(-1);
- hold.release();
- },
- });
-
- return hold;
-}
-
-function fadeOutActor(actor) {
- if (!actor.visible || actor.opacity == 0) {
- actor.opacity = 0;
- actor.hide();
- return null;
- }
-
- let hold = new Batch.Hold();
- actor.ease({
- opacity: 0,
- height: 0,
- duration: FADE_ANIMATION_TIME,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD,
- onComplete: () => {
- this.hide();
- this.set_height(-1);
- hold.release();
- },
- });
- return hold;
-}
-
/**
* @param {Clutter.Actor} actor
*/